<template>
    <div class="grandson">
      接收信息:{{msg}}
    </div>
</template>

<script lang='ts' setup>
import {inject} from 'vue'
let msg=inject('pkey')


</script>

<style lang='scss' scoped>
.grandson{
   width: 300px;
   height: 300px;
   background-color: yellow;
 }
</style>